# cubes = [value**3 for value in range(1,11)]
# for cube in cubes:
#     print(cube)

people_0 = {'name': 'yy', 'age': 22}
people_1 = {'name': 'tt', 'age': 23}
peoples = [people_0, people_1]
# print(pople_0)
print(peoples)

pet_1 = {}
pet_1['type'] = 'dog'
pet_1['ower'] = '小明'
print(pet_1)
pet_2 = {'type': 'cat', 'ower': '小红'}
print(pet_2)
for k,v in pet_1.items():
    print(f'{k}: {v}')
for k,v in pet_2.items():
    print(f'{k}: {v}')

favorite_places = {
    '张三': ['广州', '深圳', '上海'],
    '李四': ['新疆', '嘉兴', '宁波'],
    '王五': ['北京', '云南', '四川']
}
for k,v in favorite_places.items():
    print(f'{k}喜欢的地方: ')
    for place in v:
        print(f'\t\t\t {place}')


cities = {
    '北京': {"country": "China", "population": "12万", "fact": "中国的首都"},
    '纽约': {"country": "America", "population": "13万", "fact": "美国的首都"}
}
for k,v in cities.items():
    print(f'{k}: ')
    for key,value in v.items():
        print(f'{key}: {value}')